package flst.ipiweb.service;

import java.util.List;

import flst.ipiweb.persistance.dao.DAOFactory;
import flst.ipiweb.transverse.IPIException;
import flst.ipiweb.transverse.ModeDePaiement;

public class ServicePaiement {

	public List<ModeDePaiement> listerModeDePaiement() throws IPIException {
		  return DAOFactory.getInstance().getModeDePaiementDao().listerModeDePaiement();
	}

	public void updateLesModeDePaiement(List<ModeDePaiement> listModePaiement) throws IPIException 
	{
		for(ModeDePaiement mode : listModePaiement)
		{
			DAOFactory.getInstance().getModeDePaiementDao().updateModeDePaiement(mode);
		}
	}
}
